<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        padding: 50px;
      }
      main {
        width: 300px;
        height: 200px;
        border: solid 2px blueviolet;
        position: relative;
        overflow: scroll;
      }
      main article {
        height: 600px;
      }
      main article div {
        width: 200px;
        height: 200px;
        position: absolute;
        background: red;
        left: 0;
        z-index: 2;
      }
    </style>
  </head>
  <body>
    <main>
      <article>
        <div></div>
      </article>
    </main>
  </body>
</html>
